package com.cn.springcloudwechat.model.dto;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.List;

public class AreaDto {


    /**
     * id
     */
    private Long id;
    /**
     * 值
     */
    private String name;

    /**
     * 父id
     */
    private Long perentId;

    /**
     * 子节点
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<AreaDto> child;

    /**
     * 子节点
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<AreaDto> children;

    private String type;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<AreaDto> getChildren() {
        return children;
    }

    public void setChildren(List<AreaDto> children) {
        this.children = children;
    }

    public Long getPerentId() {
        return perentId;
    }

    public void setPerentId(Long perentId) {
        this.perentId = perentId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<AreaDto> getChild() {
        return child;
    }

    public void setChild(List<AreaDto> child) {
        this.child = child;
    }
}
